/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

/* 顶部导航样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 80px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo h2 {
    color: #333;
    font-size: 20px;
    font-weight: normal;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 50px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 5px 0;
}

nav a:hover {
    color: #42d7be;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.user-info img {
    width: 40px;
    height: 38px;
    border-radius: 50%;
}

.avatar {
    font-size: 16px;
}

/* 轮播图区域 */
.banner-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.banner-wrapper {
    width: 400%;
    height: 100%;
    display: flex;
    animation: slide 16s infinite;
}

.banner-wrapper img {
    width: 25%;
    height: 100%;
    object-fit: cover;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-25%);
    }
    50% {
        transform: translateX(-50%);
    }
    75% {
        transform: translateX(-75%);
    }
    100% {
        transform: translateX(0);
    }
}

/* 主要内容区域 */
main {
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.section-container {
    background-color: #fff;
    border-radius: 4px;
    padding: 15px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.section-header h2 {
    color: #333;
    font-size: 18px;
}

.more {
    color: #999;
    text-decoration: none;
    font-size: 14px;
}

.list-content ul {
    list-style: none;
}

.list-content li {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.bookmark-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.bookmark-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.list-content a {
    flex: 1;
    text-decoration: none;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.date {
    color: #999;
    font-size: 14px;
}
